// $_FILEHEADER_BEGIN ***************************
// 版权声明:Timer
// Copyright © 2015 - Timer All Rights Reserved
// 文件名称: AssetsRecordViewHepler.m
// 创建日期: 15/12/14
// 创 建 人: 甄鑫
// 文件说明: <#content#>
// $_FILEHEADER_END ******************************


#import "ARViewHepler.h"

@implementation ARViewHepler
+ (NSString *)getTitleWithType:(NSInteger)type
{
    NSString * title = @"";
    
    NSDictionary * borrowdict =
    @{@"1":@"借款中",@"0":@"借款中",@"11":@"借款中",@"12":@"借款中",
      @"2":@"已满标",@"700":@"已满标",
      @"7":@"已流标",@"6":@"已流标",
      @"4":@"还款中",@"3":@"还款中",@"9":@"还款中",@"13":@"还款中",
      @"8":@"已还款",@"10":@"已还款",
      @"5":@"已逾期"};
    
    NSArray * leadArr = 
    @[@"可出借500元",
	@"已满标",
	@"已流标",
	@"还款中",
	@"已还款",
	@"已逾期",];
    title = borrowdict[[NSString stringWithFormat:@"%ld",type]];
    return title;
}

+ (UIColor *)getNavColor:(NSInteger)type
{
    if (type >= AR_LEND_BORROW_ING) {
        type -= AR_LEND_BORROW_ING;
    }
    NSDictionary * borrowArr =
    @{@"1":UIColorFromRGB(0xFFC314),
      @"0":UIColorFromRGB(0xFFC314),
      @"11":UIColorFromRGB(0xFFC314),
      @"12":UIColorFromRGB(0xFFC314),
      @"2":UIColorFromRGB(0xF7AE68),//满标
      @"700":UIColorFromRGB(0xF7AE68),//满标
      @"7":UIColorFromRGB(0xA3A3A3),
      @"6":UIColorFromRGB(0xA3A3A3),
      @"4":UIColorFromRGB(0x6FDC2F),
      @"3":UIColorFromRGB(0x6FDC2F),
      @"9":UIColorFromRGB(0x6FDC2F),
      @"13":UIColorFromRGB(0x6FDC2F),
      @"8":UIColorFromRGB(0x49B4FF),
      @"10":UIColorFromRGB(0x49B4FF),
      @"5":UIColorFromRGB(0xF05355),};//已逾期
    return borrowArr[[NSString stringWithFormat:@"%ld",type]];
}

@end
